#!/usr/bin/env node
//setTimeout(function(){
//console.log('first');
//},1000);
//console.log('second');
//function Bomb() {
//this.message = 'Bomb';
//}
/*Bomb.prototype.explode = function() {
 * console.log(this.message);
}*/
//var bomb = new Bomb();
//var timeID = setTimeout(bomb.explode.bind(bomb),2000);
/*clearTimeout(timeID);*/
console.log('start...');
var count = 0;
var timeId= setInterval(loop,500);
function loop(){
  count++;
  console.log('I will loop forever！');
  if(6===count) {
    clearInterval(timeId);

  }
}

